package com.fitns.user.exception;

import lombok.Getter;

/**
 * 
 * @Description:PrivilegeMsgCode.java 权限相关错误码
 * @Author lcf
 * @Date:created in 2017-12-12 11:12:47
 *
 */
@Getter
public enum PrivilegeMsgCode implements MsgCode {

	// @formatter:off
	PRIVILEGE_ID_IS_NULL(40001,"权限ID不能为空"), 
	PRIVILEGE_CODE_IS_NULL(40002,"权限代码不能为空"), 
	PRIVILEGE_GRADE_PARENT(40003,"非顶级权限,必须要有父权限"),
	PRIVILEGE_ID_NOT_EXIST(40004,"权限ID信息有误"), 
	PRIVILEGE_OUT_OF_DATA_PERMISSION(40005,"不允许授权,所授数据权限超越当前用户数据权限"),
	PRIVILEGE_OUT_OF_PRIVILEGE(40006,"不允许授权,所授权限超越当前用户权限");

	// @formatter:on

	private int code;
	private String message;

	PrivilegeMsgCode(int code, String message) {
		this.code = code;
		this.message = message;
	}
}
